<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <style>
            table.tb-cart{
                width: 950px;
            }
            a.add{
               background: url(http://localhost/fashion_mvc/public/templates/admin/images/interface/interface.png) no-repeat;
                background-position: -151px -34px;
                color: #fff;
                display: inline-block;
                font: 12px/28px Arial, Helvetica, sans-serif;
                height: 33px;
                width: 140px;
                text-align: center;
                text-decoration: none;
                text-shadow: 1px 1px rgba(0, 0, 0, 0.3);
                text-transform: uppercase;
            }
            .paging{
                color: red;
                float: right;
            }
            .paging a{
                color:blue;
            }
        </style>
    </head>
    <body>
        
        <h2 style="font-family:arial;font-size: 16px; margin:10px 0px 10px 10px; color: #EE314F; text-align: center;">THÔNG TIN CHI TIẾT SẢN PHẨM</h2>
        <table  class="tb-cart" cellspacing="0px" cellpadding="0px" border="1px">
            <tr>
            <th class="title">Mã sản phẩm</th>
            <th class="title" style="width:90px;">Chi tiết 1</th>
            <th class="title" style="width:90px;">Chi tiết 2</th>
            <th class="title" style="width:90px;">Chi tiết 3</th>
            <th class="title" style="width:90px;">Chất liệu</th>
            <th class="title" style="width:40px;">Cân nặng</th>
            <th class="title" style="width:40px;">Tên màu</th>
            <th class="title" style="width:40px;">Tên size</th>
            <th class="title" style="width:100px;">Kiểu dáng</th>
            <th class="title" style="width:100px;">Chi tiết màu</th>
            <th class="title" style="width:100px;">Chi tiết size</th>
        </tr>
        <?php
        include_once 'Paging.php';
        $product = new Admin_Model_Product();
        $paging = new Paging();
        $limit = 5;
        $paging->findTotal('product_detail');
        $paging->findPages($limit);
        $start = $paging->rowStart($limit);
        $curpage = ($start / $limit) + 1;
        $row = $product->getProductDetailLimit($start, $limit);
        foreach ($row as $v) {
            ?>
            <td><?php echo $v['id'] ?></td>
            <td style="width:90px;"><?php echo $v['detail_short1'] ?></td>
            <td style="width:90px;"><?php echo $v['detail_short2'] ?></td>
            <td style="width:90px;"><?php echo $v['detail_short3'] ?></td>
            <td style="width:90px;"><?php echo $v['substance'] ?></td>
            <td style="width:10px;"><?php echo $v['weight'] ?></td>
            <td style="width:40px;"><?php echo $v['color_name'] ?></td>
            <td style="width:40px;"><?php echo $v['size_name'] ?></td>
            <td style="width:100px;"><?php echo $v['style_detail'] ?></td>
            <td style="width:100px;"><?php echo $v['color_detail'] ?></td>
            <td style="width:100px;"><?php echo $v['size_detail'] ?></td>
        </tr>
        <?php
    }
    ?>
    <tr>
    <td colspan="13">
        <div class="paging">
            <?php
            echo $paging->pagesList($curpage);
            ?>
        </div>
    </td>
</tr>
</table>

</body>
</html>
